snapshot: fix warning when asserts are disabled
authorChristian Hergert <chergert@redhat.com>
Thu, 11 Feb 2021 00:03:50 +0000 (16:03 -0800)
committerChristian Hergert <chergert@redhat.com>
Thu, 11 Feb 2021 00:13:38 +0000 (16:13 -0800)
gtk/gtksnapshot.c

index e01ce5ec68f2c10778c9d57516a709d87e85fee1..008dd108e48ee028fd4b205ffb3b5297e2b6c394 100644 (file)
@@ -1586,7 +1586,7 @@ void
 gtk_snapshot_gl_shader_pop_texture (GtkSnapshot *snapshot)
 {
   GtkSnapshotState *state = gtk_snapshot_get_current_state (snapshot);
-  GskRenderNode *node;
+  G_GNUC_UNUSED GskRenderNode *node;
 
   if (state->collect_func != gtk_snapshot_collect_gl_shader_texture)
     {